C program to print even and odd numbers between 1 to N